#coding:utf-8
__author__ = 'hl'

class Notifier:
    def __init__(self):
        self.observers = []

    def addObserver(self,observer):
        self.observers.append(observer)

    def delObserver(self,observer):
        self.observers.remove(observer)

    def notify(self,data):
        for observer in self.observers:
            observer(data)









